﻿@{
    ViewBag.Title = "Tài nguyên";
    Layout = "~/Views/Shared/FrontEndMasterLayout.cshtml";
}
@using DLULearningNetworkModel
@model DLULearningNetwork.ViewModels.ListFilesViewModel
@section cssjs{
    <link rel="Stylesheet" type="text/css" href="../../Content/Site.css" />
    <link rel="Stylesheet" type="text/css" href="../../Content/icon.css" />    
    <script type="text/javascript" src="../../Scripts/Custom/jsResource.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            Resource_Community.init();
        });
    </script>
}
@using DLULearningNetworkModel
@section rightColumn{
<div style="width:730px;">
    <div class="TieuDe" style="float:left; width: 730px;">     
        <div style="float:left;">
            Tài nguyên        
        </div>
        <div style="float:right; margin-top: -5px;">
            <a href="/Resource/Upload" style="font-size: 15px;">
                <img style="border: 0px; vertical-align: middle; margin-right: 5px;" src="../../Content/Images/upload_icon36.png" />Đăng
                tài nguyên</a>
        </div>
    </div>
    <div class="clearall"></div>
    <div>
        <div style="float:left;">
            <a class="personal_nocolor_icon36" href="/Resource/Personal">Cá nhân</a> <a class="public_icon36"
                href="/Resource/Community" style="padding-left: 44px;">Cộng đồng</a>
        </div>
        <div style="float: right;">
            <span class="text_1" style="line-height: 36px;">Lĩnh vực</span>
            @{
                List<Category> categories = Category.GetAll();
            }
            <select id="ddlCategoryID" style="height: 22px;">
                <option value="Any" selected="selected">Tất cả</option>
                @for (int i = 0; i < categories.Count; i++)
                {
                    <option value="@categories[i].CategoryID_u">@categories[i].Name_s</option>    
                }
            </select>
            <input id="txtFileName" type="text" value="Tên file" style="height: 20px; color: #999;" />
            <input id="btnSearchFiles" type="button" class="button1" value="Tìm kiếm" />
        </div>
    </div>
    <div class="clearall"></div>
    <div id="tableData" style="margin-top:10px;">
        @Html.Partial("ListFiles_Community", Model)
    </div>
</div>
}
